<?php
	defined('_JEXEC') or die('Retrict Access');
?>
<style type="text/css">
	input {
    outline: none;
	}
	input[type=search] {
	    -webkit-appearance: textfield;
	    -webkit-box-sizing: content-box;
	    font-family: inherit;
	    font-size: 100%;
	}
	input::-webkit-search-decoration,
	input::-webkit-search-cancel-button {
	    display: none; 
	}
	input[type=search] {
    background: #ededed url(images/search.png) no-repeat 0px center;
    border: solid 1px #ccc;
    padding: 9px 10px 9px 32px;
    float:right;
    width: 55px;
    high: 20px;
    -webkit-border-radius: 10em;
    -moz-border-radius: 10em;
    border-radius: 10em;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    transition: all .5s;
    margin-top:-5px;
	}
	input[type=search]:focus {
    width: 90px;
    background-color: #fff;
    border-color: #6dcff6;
     
    -webkit-box-shadow: 0 0 5px rgba(109,207,246,.5);
    -moz-box-shadow: 0 0 5px rgba(109,207,246,.5);
    box-shadow: 0 0 5px rgba(109,207,246,.5);
	}
	/* placeholder */
	input:-moz-placeholder {
	    color: #999;
	}
	input::-webkit-input-placeholder {
	    color: #999;
	}
</style>
<link rel="stylesheet"/>
	<form style="margin-top:0px;" class="search" method="post" action="news.php?do=timkiem_submit" onsubmit="return checkSearchForm(this);">
			    <input name="key" placeholder="Nhập nội dung" type="search"/>
	</form> 
<script type="text/javascript">
function checkSearchForm(frm)
{
	if(frm.key.value == "")
	{
		alert('Hãy nhập nội dung tìm kiếm vào khung!');
		frm.key.focus();
		return false;
	}
	return true;
}
</script>